package ua.kyivenergo.cableLines.data.attributes;

/**
 * Created by Alex Kebkalo (kebka@mail.ru) on 18.04.14.
 */
abstract public class Attribute {
    private String description;

    public Attribute(String description) {
        this.description = description;
    }

    public final String getDescription() {
        return description;
    }

    abstract public int getAttributeType();

    public final boolean myType(Attribute a) {
        return getAttributeType() == a.getAttributeType();
    }

    public double getRelevance(String searchString) {
        return 0;
    }
}
